﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Chess
{
    public class Rook: InterfacePiece
    {
        Piece piece = null;
        
        public Rook(Piece Rook)
		{
			piece = Rook;
		}        

        public int ImageIndex
        {
            get {return (this.piece.Player.isColor == Player.Color.BLACK ? 3 : 2); }
        }

        public bool Capture
        {
            get { return true; }
        }



        public void SetPosition(Moves moves)
        {
            Board.PieceLine(moves,piece,piece.Player,1);
            Board.PieceLine(moves,piece,piece.Player,-1);
            Board.PieceLine(moves,piece,piece.Player,16);        
            Board.PieceLine(moves,piece,piece.Player,-16);
        }        
    }
}
